// 添加商品相关功能
document.getElementById('addDishBtn').addEventListener('click', function () {
    document.getElementById('dishModal').style.display = 'block';
});

// 关闭模态框
document.querySelector('.close').addEventListener('click', function () {
    closeModal();
});

function closeModal() {
    document.getElementById('dishModal').style.display = 'none';
    document.getElementById('dishForm').reset();
}